2 tool
=$
(readlink
-e "${0%/*}/..")
5 "$tool"/host
/part-boot-umount
8 "$tool"/host
/part-lvm-umount
11 "$tool"/host
/part-root-umount
12 "$tool"/host
/part-var-umount
13 "$tool"/host
/part-home-umount
17 sudo kpartx
-d -v /dev
/domU
/$local_fqdn-disk
18 #sudo xm block-detach 0 $local_dev_disk
19 # XXX: DANGEREUX ; si jamais il bloque parce que le disque était encore utilisé :
20 # utiliser xm block-detach 0 $local_dev_disk --force ;
21 # ôter les éventuels mappages LVM concernés avec dmsetup table et dmsetup remove --force ;
22 # ôter les mappages concernés dans /etc/lvm/cache/.cache,
23 # et pour bien trouver tous les mappages :
24 # % sudo find /dev -type l -exec sh -c 'printf "%s -> " "$@"; readlink "$@"' - {} \; | grep $local_dev_disk
25 # enfin, ôter l'éventuel verrou dans /var/lock/lvm/